/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kasus1pendaftaranyudisium;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Cute
 */
public class Mahasiswa {

    private String nama;
    private String nim;
    private String noHp;
    private String prodi;
    private String bulan;
    private String hari;
    private String naskah_ta;
    private String bukti_kp;
    private String toelf_tkbi;
    private String ket_kkl;
    private String file_ket;
    private String daftar_nilai;
    private String bebaspinjam_lab;
    private String bebaspinjam_dosen;
    private String keterngan;
    private int tanggal;

    public Mahasiswa() {
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getNim() {
        return nim;
    }

    public void setNim(String nim) {
         if (nim.length() == 9) {
            this.nim = nim;
        } else {
                try {
                    throw new Exception("Panjang NIM harus 9 digit");
                } catch (Exception ex) {
                    JOptionPane.showMessageDialog(null, ex.getMessage());
                    Logger.getLogger(Mahasiswa.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
    }

    public String getKeterngan() {
        return keterngan;
    }

    public void setKeterngan(String keterngan) {
        this.keterngan = keterngan;
    }
    public String getNoHp() {
        return noHp;
    }

    public void setNoHp(String noHp) {
        this.noHp = noHp;
    }

    public String getProdi() {
        return prodi;
    }

    public void setProdi(String prodi) {
        this.prodi = prodi;
    }

    public String getBulan() {
        return bulan;
    }

    public void setBulan(String bulan) {
        this.bulan = bulan;
    }

    public String getHari() {
        return hari;
    }

    public void setHari(String hari) {
        this.hari = hari;
    }

    public int getTanggal() {
        return tanggal;
    }

    public void setTanggal(int tanggal) {
        this.tanggal = tanggal;
    }

    public String getDaftar_nilai() {
        return daftar_nilai;
    }

    public void setDaftar_nilai(String daftar_nilai) {
        this.daftar_nilai = daftar_nilai;
    }

    public String getNaskah_ta() {
        return naskah_ta;
    }

    public void setNaskah_ta(String naskah_ta) {
        this.naskah_ta = naskah_ta;
    }

    public String getBebaspinjam_lab() {
        return bebaspinjam_lab;
    }

    public void setBebaspinjam_lab(String bebaspinjam_lab) {
        this.bebaspinjam_lab = bebaspinjam_lab;
    }

    public String getBebaspinjam_dosen() {
        return bebaspinjam_dosen;
    }

    public void setBebaspinjam_dosen(String bebaspinjam_dosen) {
        this.bebaspinjam_dosen = bebaspinjam_dosen;
    }

    public String getBukti_kp() {
        return bukti_kp;
    }

    public void setBukti_kp(String bukti_kp) {
        this.bukti_kp = bukti_kp;
    }

    public String getToelf_tkbi() {
        return toelf_tkbi;
    }

    public void setToelf_tkbi(String toelf_tkbi) {
        this.toelf_tkbi = toelf_tkbi;
    }

    public String getKet_kkl() {
        return ket_kkl;
    }

    public void setKet_kkl(String ket_kkl) {
        this.ket_kkl = ket_kkl;
    }

    public String getFile_ket() {
        return file_ket;
    }

    public void setFile_ket(String file_ket) {
        this.file_ket = file_ket;
    }
}
